import React from 'react'
import { Router, Route, useRouterHistory } from 'react-router'
import {createHashHistory } from 'history'
import Home from './components/home'
import Example from './components/example'

const appHistory = useRouterHistory(createHashHistory)({
    queryKey: false
})

const route = (
    <Router history={appHistory}>
        <Route path="/" component={Home}/>
        <Route path="/example/:id" component={Example}/>
    </Router>
)

export default route